package it.unibz.ti2.internetPizzeria.entities;

import javax.persistence.*;

/**
 * Class representing product that is pizza
 */
@Entity
@Table(name = "PRODUCTS")
@DiscriminatorValue("Pizza")
public class Pizza extends Product implements Comparable<Pizza> {

	public int compareTo(Pizza arg0) {
		return name.compareTo(arg0.getName());
	}
	
}
